import { request } from '../config/request.js'


// 预约列表
export const queryAppointmentList = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/appointmentService/queryAppointmentList.do',
		method:'GET',
		query:params,
		OpenLoading:false
	})
}

// 预约详情
export const queryAppointmentInfo = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/appointmentService/queryAppointmentInfo.do',
		method:'GET',
		query:params,
		OpenLoading:false
	})
}

// 转接车
export const appointmentTransferCar = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/appointmentService/appointmentTransferCar.do',
		method:'POST',
		query:params,
		OpenLoading:true
	})
}

// 删除预约单工时 废弃
export const deleteAppointmentWi = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/appointmentService/deleteAppointmentWi.do',
		method:'POST',
		query:params,
		OpenLoading:false
	})
}


//驳回
export const appointmentReject = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/appointmentService/appointmentReject.do',
		method:'POST',
		query:params,
		OpenLoading:false
	})
}


//通过
export const examinationPassed = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/appointmentService/examinationPassed.do',
		method:'POST',
		query:params,
		OpenLoading:false
	})
}




// 删除预约单备件 废弃
export const deleteAppointmentPart = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/appointmentService.deleteAppointmentPart.do',
		method:'POST',
		query:params,
		OpenLoading:false
	})
}

// 删除预约单备件 废弃
export const saveAppointment = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/appointmentService/saveAppointment.do',
		method:'POST',
		query:params,
		OpenLoading:false
	})
}


// 维修列表
export const repairManageList = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/repairManageList.do',
		method:'GET',
		query:params,
		OpenLoading:false
	})
}

//维修列表-申请结算
export const repairManageSettlement = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/repairManageSettlement.do',
		method:'GET',
		query:params
	})
}

// 维修工单-服务活动
export const getActivitiesList = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/commonService/getActivitiesList.do',
		method:'POST',
		query:params
	})
}

// 维修工单-套餐精品
export const getSetMealList = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/commonService/getSetMealList.do',
		method:'POST',
		query:params
	})
}

// 维修工单-保养项目
export const getMaintenanceItem = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/commonService/getMaintenanceItem.do',
		method:'POST',
		query:params
	})
}

// 维修工单-委外门店
export const findOutDlrList = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/commonService/findOutDlrList.do',
		method:'GET',
		query:params
	})
}


// 维修工单-通过车牌号获得vin
export const getCarInfoByVin = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/getCarInfoByVin.do',
		method:'GET',
		query:params
	})
}


// 维修工单-通过vin获得上次建议项目
export const lastTimeProposal = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/lastTimeProposal.do',
		method:'POST',
		query:params
	})
}

// 维修工单-通过vin获得行驶里程
export const mileage = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/mileage.do',
		method:'POST',
		query:params
	})
}

// 维修工单-通过vin获得车辆/车主信息
export const carInforList = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/carInforList.do',
		method:'POST',
		query:params
	})
}

//维修工单-通过保养项目查询 工时
export const importWiSel = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/importWiSel.do',
		method:'POST',
		query:params,
		OpenLoading:false
	})
}

//维修工单-通过保养项目查询 备件
export const importPartSel = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/importPartSel.do',
		method:'POST',
		query:params,
		OpenLoading:false
	})
}

//维修工单-通过保养项目查询 其他
export const importOtherSel = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/importOtherSel.do',
		method:'POST',
		query:params,
		OpenLoading:false
	})
}

// 维修工单-维修类别
export const repairTypeAndKind = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/customer/commonService/repairTypeAndKind.do',
		method:'POST',
		query:params
	})
}

// 维修工单-保存
export const repairManageAdd = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/repairManageAdd.do',
		method:'POST',
		query:params
	})
}

// 维修工单-待修-详情
export const repairManageDetails = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/repairManageDetails.do',
		method:'GET',
		query:params
	})
}

// 维修工单-修改保存
export const updWorkOrder = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/updWorkOrder.do',
		method:'POST',
		query:params
	})
}

// 维修工单-转车间
export const byPointTransferRoom = (params) =>{
	return request({
		url:'/mp/e3sh/assistant/maintance/RepairManageService/byPointTransferRoom.do',
		method:'POST',
		query:params
	})
}

